/*
 * @Author: your name
 * @Date: 2021-03-21 20:58:24
 * @LastEditTime: 2021-03-25 09:33:39
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue-glshaop-client\src\router\routes.js
 */
import Home from '@/pages/Home'
import Search from '@/pages/Search'
import Login from '@/pages/Login'
import Register from '@/pages/Register'
import AddCartSuccess from '@/pages/AddCartSuccess'
import Detail from '@/pages/Detail'
import ShopCart from '@/pages/ShopCart'
import Trade from '@/pages/Trade'
import Pay from '@/pages/Pay'
import PaySuccess from '@/pages/PaySuccess'
import Center from '@/pages/Center'
export default [
  {
    path: '/trade',
    component: Trade
  }, {
    path: '/pay',
    component: Pay
  }, {
    path: '/paysuccess',
    component: PaySuccess
  }, {
    path: '/center',
    component: Center
  },
  {
    path: '/shopcart',
    component: ShopCart
  },
  {
    path: '/addCart',
    component: AddCartSuccess
  },
  {
    path: '/detail/:goodsId?',
    component: Detail,

  },
  {
    path: '/home',
    component: Home
  },
  {
    name: 'search',
    path: '/search/:keyword?',
    component: Search
  },
  {
    path: '/login',
    component: Login,
    meta: {
      isDis: true
    }
  },
  {
    path: '/register',
    component: Register,
    meta: {
      isDis: true
    }
  },
  {
    path: '/',
    redirect: '/home'
  }
]